#ifndef _CONFIG_H_
#define _CONFIG_H_

#include "stm8s_uart1.h"
#include "stm8s_flash.h"

#define LED4_VOL 314//12.3
#define LED3_VOL 303//11.9
#define LED2_VOL 291//11.4
#define LED1_VOL 278//10.9

#define DEBUG

enum
{
    NORMAL,
    CHARGE,
    CHARGE_TO_NORMAL,
    DISCHARGE,
    DISCHARGE_TO_NORMAL,
};
extern u32 timerCount;
extern u8 healthyFlag;

#ifdef DEBUG
void printf(u16 data);
#else
#define printf(x) ;
#endif

#endif
